package common.fengkai.filepost.utils;

import com.alibaba.fastjson.JSONObject;
import common.fengkai.filepost.entity.Position;

public class Jsontest {



       public static void main(String[] args){
           Position position = new Position();
           position.setPage(1);
           position.setText("ashdaio");
           position.setX(89);
           position.setY(98);
           String s = JSONObject.toJSONString(position);
           JSONObject jsonObject =JSONObject.parseObject(s);
           jsonObject.put("789798","465456");


           System.out.println(jsonObject.toString());

       }
}
